home *** CD-ROM | disk | FTP | other *** search
- /* SCSIDriveIDSample.c */
- /*
- * SCSIDriveIDSample.c
- * Copyright © 1992-94 Apple Computer Inc. All Rights Reserved.
- */
- /*
- * This sample shows how to convert from drive ID or volume name/id to the
- * associated SCSI Bus ID using both the old and new SCSI Managers. It presumes
- * Think C, but should be easy to convert to MPW.
- */
- #include <Folders.h>
- #include <stdio.h>
- #ifdef THINK_C
- #include <console.h>
- #endif
-
- void ShowAllDriveQueueElements(void);
- void ShowAllMountedVolumeNames(void);
- void ShowRegisteredSCSIDevices(void);
- void ShowSystemVolumeName(void);
-
- void
- main(
- #ifdef THINK_C
- int argc,
- char **argv
- #endif
- )
- {
- #ifdef THINK_C
- argc = ccommand(&argv);
- #endif
- printf("*** System Volume Name ***\n");
- ShowSystemVolumeName();
- printf("*** Driver Queue Elements ***\n");
- ShowAllDriveQueueElements();
- printf("\n*** Mounted Volumes ***\n");
- ShowAllMountedVolumeNames();
- printf("\n*** Registered Devices ***\n");
- ShowRegisteredSCSIDevices();
- }
-
-